noinst_LTLIBRARIES            = liboutils_profiling.la 

check_PROGRAMS                = test_avl \
				test_mh_avl \
				test_anon_support \
				test_access_list_types \
				test_mesure_temps \
				test_glist

liboutils_profiling_la_SOURCES = MesureTemps.c ../include/MesureTemps.h

TIRPC_STATIC_LIB = @TIRPCPATH@/src/.libs/libntirpc.a

COMMON_LDADD = ../Protocols/NFS/libnfsproto.la                   \
               $(SEC_LIB_FLAGS)                                  \
               $(SVC_LIB_FLAGS)                                  \
               $(NFSIDMAP_LIB_FLAGS)                             \
               $(EXT_LDADD)                                      \
               ../IdMapper/libidmap.la                           \
               ../support/libsupport.la                          \
	       ../RPCAL/librpcal.la				 \
               ../Cache_inode/libcache_inode.la                  \
               ../HashTable/libhashtable.la                      \
               ../LRU/liblru.la                                  \
               ../FSAL/libfsalcommon.la                          \
               $(FSAL_LIB)                                       \
               ../Log/liblog.la                                  \
               ../ConfigParsing/libConfigParsing.la              \
               ../Protocols/XDR/libnfs_mnt_xdr.la                \
               $(TIRPC_STATIC_LIB)                               \
               ../SemN/libSemN.la                                \
               ../RW_Lock/librwlock.la                           \
               ../Common/libcommon_utils.la                      \
               ../MainNFSD/libMainServices.la

if USE_NODELIST
COMMON_LDADD += ../NodeList/libNodeList.la
endif

test_access_list_types_LDADD = $(COMMON_LDADD)
test_access_list_types_SOURCES = test_access_list_types.c

test_anon_support_LDADD = $(COMMON_LDADD)
test_anon_support_SOURCES = test_anon_support.c

test_mesure_temps_SOURCES    = test_mesure_temps.c
test_mesure_temps_LDADD      = liboutils_profiling.la

test_glist_SOURCES           = test_glist.c 

test_avl_LDADD = $(COMMON_LDADD)
test_avl_SOURCES             = test_avl.c

test_mh_avl_LDADD = $(COMMON_LDADD)
test_mh_avl_SOURCES             = test_mh_avl.c ../support/murmur3.c

check-am-local:
	make -C $(top_builddir)


new: clean all
